package choopexer1;

import java.util.Scanner;

public class AdminTest {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        Admin admin1 = new Admin();
        admin1.user="admin";
        admin1.passWord="111111";

        Admin admin2 = new Admin();
        admin2.user="admin2";
        admin2.passWord="222222";

        admin1.login();
        System.out.println("是否要更改密码(Y/N):");
        String flag = scan.next();
        if(flag.equals("Y")){
            admin1.passWordModify();
        }else{
            return;
        }
        admin1.login();

    }
}
